/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl_cmts;

import java.util.Comparator;

/**
 *
 * @author Kojino
 */
public class sxtu implements Comparator<word> {
    public int compare(word w1, word w2){
        int solan1 = w1.getSolan();
        int solan2 = w2.getSolan();
        if(solan1>solan2){
            return -1;
        }else if(solan1==solan2){
            return 0;
        }else{
            return 1;
        }
    }
}
